﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Common
{
   public class ActsPersonel
    {
       public int ID { get; set; }
       //Название акта к которой относится запись
       public string Record { get; set; }
       //Робітники які ввиконували роботи
       public string Personel { get; set; }
       //Трудовитрати на одиницю люд. год.
       public decimal ManHoursUnit { get; set; }
       //Трудовитрати на обсяг робіт
       public decimal LaborCostsEmp { get; set; }

       public Dictionary<string, string> ActsPersonelFields { get; set; }
       public Dictionary<string, string> RecordFields { get; set; }
       public Dictionary<string, string> EmployeeFields { get; set; }

       public ActsPersonel() { }
       public ActsPersonel(string record, string personel, decimal manHoursUnit, decimal laborCostEmp) 
           :this(0, record, personel, manHoursUnit, laborCostEmp) { }
       public ActsPersonel(int id, string record, string personel, decimal manHoursUnit, decimal laborCostEmp) 
       {
           this.ID = id;
           this.Record = record;
           this.ManHoursUnit = manHoursUnit;
           this.LaborCostsEmp = laborCostEmp;

           RecordFields = new Dictionary<string, string>(1);
           RecordFields.Add("Record", Record);

           EmployeeFields = new Dictionary<string, string>(1);
           EmployeeFields.Add("Personel", Personel);

           //ActsPersonelFields = new Dictionary<string, string>(1);
           //ActsPersonelFields.Add("ManHoursUnit", ManHoursUnit);
           //ActsPersonelFields.Add("LaborCostsEmp", LaborCostsEmp);
       }

    }
}
